﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using MSWMDMLib;

namespace FireZone.NativeWMDMInteface
{
    internal static class NativeMethod
    {
        [DllImport("MTPDevice.dll", PreserveSig = false)]
        public extern static MediaDevMgr MTPDeviceEnum();
        [DllImport("MTPDevice.dll", PreserveSig=true)]
        public extern static int MTPEncryptParam([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), In, Out] byte[] pBuf, ref int bufLen, [MarshalAs(UnmanagedType.LPArray, SizeConst = 8)] byte[] abMac);
        [DllImport("MTPDevice.dll", PreserveSig = true)]
        public extern static int MTPDecryptParam([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), In, Out] byte[] pBuf, ref int bufLen, [MarshalAs(UnmanagedType.LPArray, SizeConst = 8)] byte[] abMac);
    }
}
